const jpg = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/Jpg.svg';
const pnf = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/Pdf.svg';
const png = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/Png.svg';
const doc = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/doc.svg';
const excel = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/excel.svg';
const mp3 = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/mp3.svg';
const zip = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/zip.svg';
const docx = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/DOCX.svg';
const xlsx = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/XLSX.svg';
const ppt = 'https://sxit-gc.oss-cn-beijing.aliyuncs.com/tdf-bms-file/icon/PPT.svg';
export default (props) => {
  if (props) {
    if (props === 'ppt') {
      return ppt;
    }

    if (props === 'png') {
      return png;
    }
    if (props === 'jpg' || props === 'jpeg') {
      return jpg;
    }
    if (props === 'pdf') {
      return pnf;
    }
    if (props === 'docx') {
      return docx;
    }
    if (props === 'excel') {
      return excel;
    }

    if (props === 'xlsx') {
      return xlsx;
    }
    if (props === 'mp3') {
      return mp3;
    }
    if (props === 'jpg') {
      return jpg;
    }
    if (props === 'zip') {
      return zip;
    }
    return doc;
  }
};
